/////////////////////////////////////////////////////////////////////////////////////////////
// Filename: WinMain.cpp
// (c) Dave Ottley, 2012. All rights reserved.
/////////////////////////////////////////////////////////////////////////////////////////////

///////////////////////////
//		INCLUDES
///////////////////////////
#include <Windows.h>

///////////////////////////
//		MY INCLUDES
///////////////////////////
#include "ApplicationLayer.h"
#include "Util.h"
#include "Constants.h"


extern ApplicationLayer * const		g_pApp =				ApplicationCls;

///////////////////////////
//		wWINMAIN
///////////////////////////
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdline, int nCmdShow)
{
	UNREFERENCED_PARAMETER( hPrevInstance );
    UNREFERENCED_PARAMETER( pCmdline );

	if(!g_pApp->Initialize(hInstance, nCmdShow))
		return 1;

	int ret = g_pApp->Run();
	
	g_pApp->Shutdown();

	return ret;

}